<?php

defined('MYLITS') ? '' : exit('No direct script access allowed');

/**
 * @version     1.0.0
 * @package     mylits engine
 * @license     GNU General Public License version 3
 * @author      Arfan Fudyartanto D N <arfan@mylits.com> - http://engine.mylits.com
 */
class addProcess extends Mylits_Process {

    function __construct() {
        parent::__construct();
        $this->setTemplate('input');
        $this->model = $this->loadModel('users');
    }

    public function response() {
        $urlAction = BASE_URL . $this->getComponentName() . '/do.add';
        $addResult = Mylits_Messenger::getInbox($this->getComponentName());
        $urlList = BASE_URL . $this->getComponentName();
        $groupList = $this->model->getGroupList();
        return compact('urlAction', 'addResult', 'urlList', 'groupList');
    }

}

?>
